/*
* Runs.h
* Last edited: 21.07.2014
* Author: David Noack
*/
#pragma once
#include "NistTest.h"

/**
\class Runs
\brief Implementation of the Nist Runs-test
*/
class Runs : public NistTest
{

	public:
		/** Construktor
		\param bitArray Represents the random bits which have to be tesed.
		\param bitArraySize The size of bitArry in bits.*/
		Runs(bool* bitArray, int bitArraySize);

		/**Destructor*/
		~Runs(){};

		/**Does nothing*/
		void start(){};

		/**Executes the Runs-test at the bitArray, given by the constructor.
		\param size The number of bits you want to test within the bitArray.*/
		double execute(int size);

	private:

		/** Tests if the Monobittest is passed for the bitArray
		\return True if the test is passed, false otherwise*/
		bool testPi();

		double tau;
		double vn_obs;



};

